package com.oa.system.vo;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.joneying.common.session.Session;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 用户列表
 */
@Data
public class UserVO extends Session implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "工号")
    private String jobNo;

    @ApiModelProperty(value = "微信ID")
    private String wechatId;

    @ApiModelProperty(value = "用户姓名")
    private String name;

    @ApiModelProperty(value = "部门")
    private String departmentName;

    @ApiModelProperty(value = "岗位")
    private String postName;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "授权状态(1-启用  2-禁用)")
    private String authorizationStatus;

    @ApiModelProperty("权限集合")
    private List<PermissionVO> permissionVOS;

}
